package com.bjsxt.ego.search.entity;

/**
 * @author lvyelanshan
 * @create 2019-10-23 21:29
 */

import org.apache.solr.client.solrj.beans.Field;

/**
 * 封装索引库的查询结果，响应到页面
 */
public class Item {

    @Field("id")
    private String id;
    @Field("title")
    private String title;
    @Field("sell_point")
    private String sell_point;
    @Field("price")
    private Long price;
    @Field("image")
    private String image;
    @Field("category_name")
    private String category_name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSell_point() {
        return sell_point;
    }

    public void setSell_point(String sell_point) {
        this.sell_point = sell_point;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public String[] getImages(){
        String[] images = image.split(",");
        return images;
    }
}
